﻿using System;
using System.Text;
using System.Web;

namespace Songhay.Web
{
    public partial class DataActivtyServer : HttpApplication
    {

        void ClientBeginRequest(object sender, EventArgs e)
        {
            DataActivtyServer._log = new StringBuilder();
            DataActivtyServer._log.AppendFormat("Static log started for Data Activity Server: {0}", DateTime.Now);
            DataActivtyServer._log.AppendLine();
            DataActivtyServer._log.AppendLine("Application started (ClientBeginRequest()). Getting Request Bag...");

            RequestBag reqBag = new RequestBag(this.Context);
            if(!DataActivtyServer.IsApplicationDataInitialized()) DataActivtyServer.Start(reqBag);
        }
    }
}